package com.ty.timer;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.TimerTask;

public class Task2 extends TimerTask {

    private static final Logger log = LoggerFactory.getLogger(Task2.class);
    private int count =0;
    @Override
    public void run() {
        log.debug("task2 doing ->" + count);
        count++;
        if(count > 5){
           int n = 5/0;
        }
    }
}
